/*
 * apriori.h
 *
 *  Created on: Nov 18, 2011
 *      Author: I829422
 */

#ifndef APRIORI_H_
#define APRIORI_H_
#include <string>
#include <map>
using namespace std;
typedef map<string,int>::iterator mapit;
class apriori {
public:
	apriori(string&,string&, int);
	~apriori();
	void start();
private:
	string data_address;
	string resultdir;
	int support;
	map<string,int> itemmap;
	int init_map();
	int prune(int);
	bool compare(mapit,mapit);
	string combine(mapit,mapit);
};

#endif /* APRIORI_H_ */
